//
//  RegisterController.m
//  HappyBaby
//
//  Created by lanou on 15/11/30.
//  Copyright © 2015年 华哥. All rights reserved.
//

#import "RegisterController.h"
#import "RegisterView.h"
#import "SimpleRegistController.h"
@interface RegisterController ()

@property (nonatomic, strong) RegisterView *registerView;

@end

@implementation RegisterController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"欢迎注册";
    self.registerView = [[RegisterView alloc] initWithFrame:self.view.bounds];
    [self.view addSubview:_registerView];

    [self.registerView.simpleRegister addTarget:self action:@selector(simpleRegister) forControlEvents:UIControlEventTouchUpInside];
    // 给注册提交按钮添加方法
    [self.registerView.submitBtn addTarget:self action:@selector(registerBtn) forControlEvents:UIControlEventTouchUpInside];

}

#pragma mark --点击注册按钮执行的方法
- (void)registerBtn
{
    
}

#pragma mark --跳转快速注册界面
- (void)simpleRegister
{
    SimpleRegistController *simpRegisterVc = [[SimpleRegistController alloc] init];
    [self.navigationController pushViewController:simpRegisterVc animated:YES];
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
